<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>true-order</title>
		<!--购物车样式-->
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/shopcar.css" />
		
		

		
		
		<!--引进jquery文件-->
		<script src="./Public/Home/js/jquery-1.7.2.min.js"></script>
		<!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="./Public/Home/bootstrap/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<!--<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>-->

		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="./Public/Home/bootstrap/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="./Public/Home/js/main.js"></script>
		<!--主页样式-->
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/style.css" />
		
	</head>

	<body>
		<!--全局最外层div-->
		<div id="all_wrap">
			<!--头部表头-->
			<div id="header_wrap">
				<div class="header_inner">
					<div class="ng-toolbar-left fl">
						<div class="a_left" href="javascript:;">
							<span>网站导航</span>
							<em class="sia-sanjiao"></em>
							<div class="hengxian_home"></div>
							<div class="nav_web">
								<dl>
									<dt>特色购物</dt>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
								</dl>
								<dl>
									<dt>特色购物</dt>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
								</dl>
								<dl>
									<dt>特色购物</dt>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
								</dl>
								<dl>
									<dt>特色购物</dt>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
								</dl>
								<dl class="none-border">
									<dt>特色购物</dt>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
									<p><a href="">苏宁互联</a></p>
								</dl>
							</div>
						</div>
						<a class="a_right" href=""><span>商家入驻</span></a>
					</div>
									<div class="ng-toolbar-right">
					<div id="login-regist" class="fl">
												<a class="register" href="http://127.0.0.1/su-HD/shop/index.php?m=Home&c=User&a=index">诚挚生活</a>
						
               					</div>
					<ul>
						<li>
							<a class="home-a home-width1" href="">
							<span>我的订单</span><em class="sia-sanjiao"></em>
						</a>
							<div class="myorder">
								<a class="myorder-a" href="">待支付</a>
								<a class="myorder-a" href="">待支付</a>
								<a class="myorder-a" href="">待支付</a>
								<a class="myorder-a" href="">待支付</a>
							</div>
						</li>
						<li>
							<a class="home-width1" href=""><span>我的易购</span><em class="sia-sanjiao"></em></a>
							<div class="my-yigou">
								<p class="user-info">
									<a class="phone-user" href="">1<img src="" alt="" /></a>
								</p>
								<p class="user-list">
									<a class="user-list-a" href="">我的二手</a>
									<a class="user-list-a" href="">我的二手</a>
									<a class="user-list-a" href="">我的二手</a>
									<a class="user-list-a" href="">我的二手</a>
									<a class="user-list-a" href="">我的二手</a>
									<a class="user-list-a" href="">我的二手</a>
								</p>
							</div>
						</li>
						<li><a class="home-width3" href="http://127.0.0.1/su-HD/shop/index.php?m=Home&c=ShopCar&a=index"><span>购物车</span></a></li>
						<li><a class="home-width2" href="">手机苏宁<span></span><em class="sia-sanjiao"></em></a></li>
						<li><a href=""><span>易付宝</span></a></li>
						<li><a href=""><span>政企采购</span></a></li>
						<li>
							<a class="home-width1" href=""><span>客户服务</span><em class="sia-sanjiao"></em></a>
							<div class="kehu-server">
								<a href="">帮客预约</a>
								<a href="">帮客预约</a>
								<a href="">帮客预约</a>
								<a href="">帮客预约</a>
								<a href="">帮客预约</a>
								<a href="">帮客预约</a>
							</div>
						</li>
					</ul>
				</div>
				</div>
				<div id="header_center">
					<a class="logo" href="http://127.0.0.1/su-HD/shop/index.php?m=Home&c=Index&a=index"><img src="./Public/Home/img/logo.gif"/></a>
					<a class="huodong" href=""><img src="./Public/Home/img/logo2.jpg"/></a>
					<div class="serch-right">
						<div class="serch-in">
							<input type="text" name="" id="" value="" placeholder="民意" />
							<span>搜索</span>
						</div>
						<div class="search-bottom-text">
							<a class="red" href="">海信618秒杀</a>
							<a href="">海信618秒杀</a>
							<a href="">海信618秒杀</a>
							<a href="">海信618秒杀</a>
							<a href="">海信618秒杀</a>
							<a href="">海信618秒杀</a>
						</div>
					</div>
				</div>
				<div id="nav">
					<div class="nav-inner">
						<div class="nav-all">
							<span>全部商品分类</span>
							<div class="nav-all-left"></div>
							<div class="nav-all-bottom"></div>
						</div>
						<div class="nav-all-right">
							<ul>
							<li><a href="">苏宁会员</a></li>
							<li><a href="">服装城</a></li>
							<li><a href="">苏宁超市</a></li>
							<li>
								<a href="">电器城</a>
								<i class="hot-li"></i>
							</li>
							<li><a href="">红孩子母婴</a></li>
							<li>
								<a href="">大聚惠</a>
								<span class="new-li"></span>
							</li>
							<li><a href="">苏宁金融</a></li>
							<li><a href="">海外购</a></li>
							<li><a href="">中华特色馆</a></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<!--头部表头结束-->
			
			<!--购物车主题-->
			<div id="shop-car-wrap">
				<div class="shop-jindu">
					<a href=""><img src="<?php echo __PUBLIC__?>/Home/img/snlogo.png"/></a>
					<div class="cart-progress">
						<ul>
							<li>
								<i class="juse">1</i>
									<div class="hengxian-shop juse">
							
									</div>
								<span>我的购物车</span>
							</li>
							<li>
								<i class="juse">2</i>
									<div class="hengxian-shop">
							
									</div>
								<span>确认订单</span>
							</li>
							<li>
								<i>3</i>
									<div class="hengxian-shop">
							
									</div>
								<span>付款</span>
							</li>
							<li>
								<i>4</i>
								<span>支付成功</span>
							</li>
						</ul>
						
					</div>
				</div>
				
				
			</div>
			
			
			
			
			<!--确认订单开始-->
			<form id="form" action="" method="post">
				<div id="true-order-wrap">
					<div class="true-order-peisong">
						<div class="step-title">
							<i>配送信息</i>
						</div>
						<script type="text/javascript">
							$(function(){
								$('.setmoren').live('click',function(){
									$(this).text('默认地址');
									$(this).removeClass('setmoren');
									$(this).addClass('moren');
									
									$(this).parents('li').siblings().find('.moren').removeClass('moren').addClass('setmoren');
									
									var key = $('.moren').attr('zhi');
									$('input[name=adid]').val(key);
									
								})
							})
						</script>
						<div class="addr-list">
							<ul>
								<?php foreach ($userAddr as $k=>$v){?>
								<li>
									<div class="addr-inner">
										<p>地址：<span><?php echo $v['user_address']?> </span></p>
										<input type="hidden" name="" value="<?php echo $userInfo['address']?>" />
										<p>电话：<?php echo $v['user_phone']?></p>
										<input type="hidden" name="" value="" />
										<p>姓名：<?php echo $v['user_name']?></p>
										<input type="hidden" name="" value="" />
									</div>
									<?php if($k == 0){?>
                
									<div class="moren" zhi="<?php echo $v['adid']?>">默认地址</div>
									<input type="hidden" name="adid" value="<?php echo $v['adid']?>" />
									<?php }else{?>
									<div class="setmoren" zhi="<?php echo $v['adid']?>">设为默认地址</div>
									
               <?php }?>
								</li>
								<?php }?>
								<li>
									<span>添加地址</span>
								</li>
							</ul>
						</div>
					</div>
					<!--商品及服务信息-->
					<div id="step-title">
						<span>商品及服务信息</span>
						<a href="<?php echo U('ShopCar/index')?>">返回我的购物车修改</a>
					</div>
					<!--单个商品结算开始-->
					<div id="step-dange">
						<div class="step-dange-title">
							<div class="store-first1">
								<span>锚点食品专营店</span>
							</div>
							<div class="store-first2">
								<span>服务信息</span>
							</div>
							<div class="store-first3">
								<span>单价</span>
							</div>
							<div class="store-first4">
								<span>数量</span>
							</div>
							<div class="store-first5">
								<span>小计</span>
							</div>
						</div>
						<?php if(isset($data['goods'])){?>
                
						<?php foreach ($data['goods'] as $k=>$v){?>
						<div class="step-product">
							<div class="step-product-left">
								<a href=""><img src="<?php echo $v['options']['listImg']?>"/></a>
								<input type="hidden" name="listImg[]" value="<?php echo $v['options']['listImg']?>" />
								<!--货品组合属性，商品id-->
								<input type="hidden" name="gid[]" value="<?php echo $v['id']?>" />
								<input type="hidden" name="combile[]" value="<?php echo $v['options']['combile']?>" />
								
								<a href=""><?php echo $v['name']?></a>
								<input type="hidden" name="name[]" value="<?php echo $v['name']?>" />
							</div>
							<div class="step-product-center">
								<span>支付完成后尽快为您发货</span>
							</div>
							<div class="step-product-right">
								<div class="step-ys"><span>$<?php echo $v['price']?></span></div>
								<input type="hidden" name="price[]" value="<?php echo $v['price']?>" />
								<div class="step-ys"><span><?php echo $v['num']?></span></div>
								<input type="hidden" name="num[]" value="<?php echo $v['num']?>" />
								<div class="step-ys"><span>$<?php echo $v['total']?></span></div>
								<input type="hidden" name="total[]" value="<?php echo $v['total']?>" />
							</div>
						</div>
						<?php }?>
						<?php }else{?>
						<p>
							您暂未选择购物车商品，请选择再购买哦
							<a style="color: #FF9900;" href="<?php echo U('ShopCar/index')?>">购物车</a>
						</p>
						
               <?php }?>
						<div class="end-product">
							<div class="end-product-left">
								<span>给卖家留言</span>
								<textarea class="explain" name="explain" rows="2" cols="85"></textarea>
							</div>
							<div class="end-product-right">
								<p></p>
								<p></p>
								<p><span>免运费</span></p>
								<p><span>合计(含运费)</span></p>
								<p></p>
								<p><span>¥ <?php echo $data['total_all']?></span></p>
								<input type="hidden" name="total_all" value="<?php echo $data['total_all']?>" />
							</div>
						</div>
					</div>
					
					<!--结算信息-->
					
					<div id="end-jiesuan">
						<div class="step-title">
							<i>结算信息</i>
						</div>
						<div class="step-title-end">
							<div class="item-cuopon">
								<div class="toggle-title">
									<i>&nbsp;&nbsp;</i>
									<b><a href="">使用优惠券</a></b>
									<span>（无可使用优惠券）</span>
								</div>
							</div>
							<div class="item-cuopon">
								<div class="toggle-title">
									<i>&nbsp;&nbsp;</i>
									<b><a href="">使用推荐号</a></b>
								</div>
							</div>
							<div class="item-cuopon fr">
								<div class="toggle-title">
									<span class="span-jiesuan">
										¥<?php echo $data['total_all']?>
									</span>
									<i class="i-jiesuan"><span style="color: #FF6600;"><?php echo $data['total_num']?></span>件商品 总计：</i>
									<input type="hidden" name="total_num" id="" value="<?php echo $data['total_num']?>" />
								</div>
							</div>
							<div class="item-cuopon">
								<div class="toggle-title">
									<span class="span-jiesuan">
										¥0.00
									</span>
									<i class="i-jiesuan">运费：：</i>
								</div>
							</div>
							<div class="item-cuopon">
								<div class="toggle-title">
									<span class="span-jiesuan">
										-¥0.00
									</span>
									<i class="i-jiesuan">优惠：</i>
								</div>
							</div>
							<div class="item-cuopon">
								<div class="toggle-title">
									<span class="span-jiesuan">
										-¥0.00
									</span>
									<i class="i-jiesuan">优惠券/卡：</i>
								</div>
							</div>
							<div class="item-cuopon">
								<div class="toggle-title1">
									<!--公用选择框-->
									<div class="shopcar-btn">
									</div>
									<span>使用云钻</span>
								</div>
							</div>
							<div class="item-cuopon">
								<div class="toggle-title1">
									<!--公用选择框-->
									<div class="shopcar-btn">
									</div>
									<span>找人代付</span>
								</div>
							</div>
						</div>
					</div>
					
					
					<!--结算信息结束-->
					<!--提交订单-->
					<div id="checkout-wrap">
						<p class="sun-pay-price">
							<span>应付金额：</span>
							<i>￥</i>
							<em><?php echo $data['total_all']?></em>
						</p>
						<p class="content-mt5">
							收货信息：<span class="position-span"><?php echo $userInfo['truename']?> <?php echo $userInfo['cellphone']?> <?php echo $userInfo['address']?></span>
						</p>
						<p class="content-mt5">
							支付方式：<span class="position-span">在线支付</span>
						</p>
						<p class="submit-price-btn"><a class="submit-a" href="javascript:;">提交订单</a></p>
					</div>
					
					
					
					
					<!--单个商品结算结束-->
					
					
					<!--商品及服务信息结束-->
				</div>
			</form>
			
				<!--将订单信息写入订单列表和订单表，然后跳转到支付页面-->
				<script type="text/javascript">
					$(function(){
						$('.submit-a').click(function(){

							var data = $('#form').serialize();

//							alert(data); return;
							$.ajax({
								type:"post",
								url:"<?php echo U('Success/index')?>",
								data:data,
								dataType:'json',
								success:function(phpData){
//									alert(phpData.sta);
									if(phpData.sta == 1){
										alert(phpData.message);
									}else{
//										var oid = phpData.oid;
//										var olid = phpData.olid;
//										location.href = "<?php echo U('Pay/index',array('oid' => "+oid+",'olid' => "+olid+"))?>";
										location.href = phpData.url;
									}
								}
								
								
								
							});
						})
					})
				</script>
				
				
				<!--确认订单结束-->
				
			
			<!--底部开始-->
			
			<div id="footer-wrap">
				<div class="ng-promise">
					<div class="ng-promise-top">
						<div class="ng-promise-top1">
						<dl>
							<dt class="bao-dt1"></dt>
							<dd>
								<p class="baozheng">正品保证</p>
								<p class="baozheng1">正品保证</p>
								<p></p>
							</dd>
						</dl>
						</div>
						<div class="ng-promise-top1">
						<dl>
							<dt class="bao-dt2"></dt>
							<dd>
								<p class="baozheng">正品保证</p>
								<p class="baozheng1">正品保证</p>
								<p></p>
							</dd>
						</dl>
						</div>
						<div class="ng-promise-top1">
						<dl>
							<dt class="bao-dt3"></dt>
							<dd>
								<p class="baozheng">正品保证</p>
								<p class="baozheng1">正品保证</p>
								<p></p>
							</dd>
						</dl>
						</div>
						<div class="ng-promise-top1">
						<dl>
							<dt class="bao-dt4"></dt>
							<dd>
								<p class="baozheng">正品保证</p>
								<p class="baozheng1">正品保证</p>
								<p></p>
							</dd>
						</dl>
						</div>
					</div>
					<!--第二排-->
					<div class="help-bottom">
						<dl>
							<dt><a href="">购物指南</a></dt>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
						</dl>
						<dl>
							<dt><a href="">购物指南</a></dt>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
						</dl>
						<dl>
							<dt><a href="">购物指南</a></dt>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
						</dl>
						<dl>
							<dt><a href="">购物指南</a></dt>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
						</dl>
						<dl>
							<dt><a href="">购物指南</a></dt>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
							<dd><a href="">购物指南</a></dd>
						</dl>
					</div>
					<div class="yigouweixin">
						<p>易购客户端</p>
						<a href="">
							<img src="./Public/Home/img/icon/icon-yixin.jpg" alt="" />
						</a>
					</div>
				</div>
				<div id="bottom-xianshi">
					<div class="bottom-xianshi-inner">
						<div class="bottom-xianshi-inner-in">
							<dl>
								<dt><a href=""><img src="./Public/Home/img/bottom/f1.png" alt="" /></a></dt>
								<dd>
									<p><a href="">1111111111</a></p>
									<p><a href="">1111111111111</a></p>
								</dd>
							</dl>
						</div>
						<div class="bottom-xianshi-inner-in">
							<dl>
								<dt><a href=""><img src="./Public/Home/img/bottom/f2.png" alt="" /></a></dt>
								<dd>
									<p><a href="">1111111111</a></p>
									<p><a href="">1111111111111</a></p>
								</dd>
							</dl>
						</div>
					</div>
				</div>
				<div id="bottom-bottom">
					<div class="bottom-bottom-inner">
						<p class="ng-url-list">
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
						</p>
						<p class="ng-url-list">
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
							<a href="">百度 </a><span>|&nbsp;&nbsp;</span>
						</p>
						<p class="ng-copyright">
							Copyright© 2002-2016 ，苏宁云商集团股份有限公司版权所有 <a href="">苏ICP备10207551号-4</a> <a href="">苏B1-20130131</a> <a href="">苏B2-20130376</a> <a href="">苏B2-20130391</a> 出版物经营许可证新出发苏批字第A-243号
						</p>
						<p class="ng-authentication">
							<a href=""><img src="./Public/Home/img/bottom/chengxin11.png" alt="" /></a>
							<a href=""><img src="./Public/Home/img/bottom/dianxin.jpg" alt="" /></a>
							<a href=""><img src="./Public/Home/img/bottom/unicom.png" alt="" /></a>
							<a href=""><img src="./Public/Home/img/bottom/dianzi.png" alt="" /></a>
						</p>
					</div>
				</div>
			</div>
			
			
			
			<!--底部开始结束-->
		</div>
</body>
</html>
